package com.huashizhaoxi.lionapp.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

/**
 * 用户实体类
 * @author 墨枫逸尘
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private int id;

    private String open_id;

    private String nickname;

    private String email;

    private String phone;

    private String address;

    private String personality_front;

    // 0:普通用户 1:管理员 2:超级管理员
    private int role;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date create_time;

}
